package com.wangshouyu.mp.message;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @author 王守钰
 * @date 2020年12月07日 14:02
 * @description 图文消息
 */
public class NewsMessage implements Serializable {

    /**
     * 文章
     */
    private List<ArticleMessage> articles;

    public List<ArticleMessage> getArticles() {
        return articles;
    }

    public void setArticles(List<ArticleMessage> articles) {
        this.articles = articles;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        NewsMessage that = (NewsMessage) o;
        return Objects.equals(articles, that.articles);
    }

    @Override
    public int hashCode() {
        return Objects.hash(articles);
    }

    @Override
    public String toString() {
        return "NewsMessage{" +
                "articles=" + articles +
                '}';
    }
}
